# Replication Data for: Pro-environmental voting when climate change is made salient: Evidence from high-resolution flooding data
This repository contains the relevant code that allows to replicate all tables and figures of the paper "Pro-environmental voting when climate change is made salient: Evidence from high-resolution flooding data" by Felix Holub and Matthias Schündeln

## Structure
The folder `data` contains the comma-separated data files.
The folder `code` contains the R-programs that create the relevant code.
The folder `results` will be populated when executing the R-programs.

## Code
`0InstallPackages.r` installs all required packages.

`TablesAndFiguresMain.r` creates all Tables and Figure 3 from the main text.

`TablesAppendixA.r` creates all Tables from Appendix A.

`TableAppendixB.r` creates Table B.1 from Appendix B.

`ExtensionGreenStronghold.r` replicates the analysis while allow for heterogeneous effects across municipalities with different historical levels of green party support.

`ExtensionPlus2005.r` replicates the analysis while replacing the 2009 election with the 2005 election.

## Data
All data are publicly available.
*Bundestag* election data for 2009, 2013, and 2017 are available at https://www.bundeswahlleiter.de/dam/jcr/159344fc-d466-4d34-b432-25d7891ab09f/btw09_wbz.zip, https://www.bundeswahlleiter.de/dam/jcr/0ad35576-0c4b-4fa5-85f5-284618b8fa25/btw13_wbz.zip, and https://www.bundeswahlleiter.de/dam/jcr/a2eef6bd-0225-447c-9943-7af0f46c94d1/btw17_wbz.zip, respectively.

*Bundestag* election data for 2021 were obtained via email from the state-level election offices wahlen@it.nrw.de and wahlen@statistik.rlp.de.

CEMS flood and damage data are available at https://emergency.copernicus.eu/mapping/list-of-components/EMSR517.

Data on buildings are available at https://www.openstreetmap.org.

All online resources last accessed on September 7, 2022.
